<!--
    页面名称：管理员-> 修改书籍封面
    作者: 苗怀雨
    时间:2017年12月31日
    最后编辑：2018年1月5日11:22:10
-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<tag:head title="修改书籍封面" ctx="${ctx}">
	<link href="${ctx}/assets/css/admin/admin_department_add/style.css" rel="stylesheet">	<!-- this page -->
</tag:head>


<tag:body>
	<!-- 左 上 导航 -->
	<tag:nav ctx="${ctx}"></tag:nav>

	<!-- page content -->
	<tag:content title="修改书籍封面">
		<div class="col-md-1"></div>
		<div class="col-md-10 col-sm-3 col-xs-12 form-horizontal">
			<form action="updateBookImage" method="post" enctype="multipart/form-data">
				<div class="form-group col-sm-12" style="display: none;">
					<label class="control-label col-sm-2">书籍ID:</label>
					<div class="col-sm-2">
						<input type="text" name="bookId" value="${requestScope.book.bookId}" class="form-control col-md-3 col-xs-12"/>										</div>
				</div>
				<div class="form-group">
					<label class="control-label col-sm-2" for="image_file">上传封面图片</label>
					<div class="col-sm-4">
						<input type="file" id="image_file" name="book_img" class="form-control col-md-7 col-xs-12">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2"></div>
					<div class="col-sm-10">
						<img id="preview" src="${ctx}/${requestScope.book.bookImage}" width="120px" height="120px" />
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-sm-2"></label>
					<div class="info"></div>
				</div>
				<div class="ln_solid"></div>
				<div class="form-group">
					<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-4">
						<button id="save" type="button" class="btn btn-success">保存</button>
						<button type="button" class="btn btn-info">返回</button>
					</div>
				</div>
				<div class="emptyRow"></div>
			</form>
		</div>
	</tag:content>
	<!-- /page content -->

	<!-- footer content -->
	<tag:footer></tag:footer>
</tag:body>
<!-- javascript-->
<tag:javascript ctx="${ctx}">
	<script src="${ctx}/assets/js/admin/admin_book_image_update/admin_book_image_update.js"></script>	<!-- this page -->
	<script src="${ctx}/assets/js/imgPreview/script.js"></script>	<!-- 图片预览 -->
</tag:javascript>
</html>
